package com.lemon.exam.entity.po;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * ${tableComment} 持久层对象
 *
 * @author ${author}
 * @since ${time}
 */
@Getter
@Setter
@ToString
@Table(value = "${tableName}")
@Schema(name = "${tableComment}")
public class ${javaName + "PO"} implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

<#list columns as column>
<#if column.isPrimaryKey>
    @Id
</#if>
    @Schema(description = "${column.columnComment}")
    @Column(value = "${column.columnName}")
    private ${column.javaType} ${column.javaName};

</#list>
}
